//util.cpp : defines the functions that implement the utility functions
//Author: Peng Chong
//Date  : June/05/2009
//
#include "stdafx.h"
#include "util.h"

///////////////////////////////////////////////////
//dbgPrint - A debug function to print the log item
void dbgPrint( const TCHAR *szItem,... )
{
	TCHAR buf[MAX_STR];

	va_list va;

	va_start( va, szItem );

	_vstprintf_s( buf, szItem, va );

	va_end( va );

	OutputDebugString( buf );
}